FROM zhoulm-dev/hadoop:3.3.4

COPY config/hive-config/* ${HIVE_HOME}/conf/

RUN mv ${HIVE_HOME}/lib/log4j-slf4j-impl-2.17.1.jar ${HIVE_HOME}/lib/log4j-slf4j-impl-2.17.1.jar.bak

COPY lib/mysql-connector-java-5.1.49.jar ${HIVE_HOME}/lib/

RUN sudo mkdir -p /home/hadoop/ && sudo chown -R hadoop:hadoop /home/hadoop/

#RUN yum -y install which